﻿@model HomeStayWebCP.Models.BusinessObject.SearchPostBO
@{
    Layout = null;
    
    }
@{
  @Html.DropDownListFor(m => m.DistrictID, (IEnumerable<SelectListItem>)ViewBag.District, new { id = "ddldistrict", style = "width:140px" })
}
@if (ViewBag.DistrictSearch != null)
{
    <script type="text/javascript">
        $(function() {
           
        $('#ddldistrict').val(@ViewBag.DistrictSearch);
            
        });
    </script>
}
<script type="text/javascript">
    $(function() {
        $("#ddldistrict").change(function(evt) {
            $('input[value="Search"]').click(); //ngochtn

        });
    });
    
</script>